$switch-background-color: #ced4da !default;
$switch-checked-background-color:#479cc8 !default;

.rz-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.75rem;
}

.rz-switch-circle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.rz-switch-circle.rz-disabled {
  background: #ced4da !important;
}

.rz-switch .rz-switch-circle {
  background: $switch-background-color;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  border-radius: 30px;
}

.rz-switch.rz-switch-checked .rz-switch-circle {
  background: $switch-checked-background-color;
}

.rz-switch .rz-switch-circle:before {
  background: #ffffff;
  width: 1.25rem;
  height: 1.25rem;
  left: 0.25rem;
  margin-top: -0.625rem;
  border-radius: 50%;
  transition-duration: 0.2s;
}

.rz-switch-circle:before {
  position: absolute;
  content: "";
  top: 50%;
}

.rz-switch.p-rz-switch-checked .rz-switch-circle:before {
  background: #ffffff;
}

.rz-switch.rz-switch-checked .rz-switch-circle:before {
  transform: translateX(1.25rem);
}